#!/bin/bash

mydir=`pwd`

cd /etc/yum.repo.d/
rm -rf *.repo

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

cd $mydir

rpm -e --nodeps mysql-libs-5.1.73-5.el6_6.x86_64

yum -y install mysql-server

chkconfig mysqld on

service mysqld start
